<h1>Editing guest</h1>

<%= error_messages_for :guest %>

<% form_for(:guest, :url => guest_path(@guest), :html => { :method => :put }) do |f| %>
  <p>
    <b>Ip address</b><br />
    <%= f.text_field :ip_address %>
  </p>

  <p>
    <b>Created at</b><br />
    <%= f.text_field :created_at %>
  </p>

  <p>
    <b>Updated at</b><br />
    <%= f.datetime_select :updated_at %>
  </p>

  <p>
    <%= submit_tag "Update" %>
  </p>
<% end %>

<%= link_to 'Show', guest_path(@guest) %> |
<%= link_to 'Back', guests_path %>